<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>CSS Test: vertical-align: top</title>
  <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
  <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/vertical-align/001.html" type="text/html"/>
  <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#line-height" />
  <style type="text/css">* { margin: 0; padding: 0 }
   .ahemprereq { display: inline; font: 900 1em/1 Ahem, sans-serif; background: red; color: white; }
   div { color: navy; text-align: center; width: 6em; font: 2em/1 Ahem; }
   span { font-size: 2em; }
   .bottom { border-bottom: solid blue; }
   .bottom span { vertical-align: bottom; }
   .top span { vertical-align: top; }
  </style>
 </head>
 <body>
  <p class="ahemprereq">Ahem_font_required_for_this_test._See_directory_listing_for_details.</p>
  <p>There should be a plus sign below with a blue line through the middle of it.</p>
  <div class="bottom">x<span>X</span>x</div>
  <div class="top">x<span>X</span>x</div>
 </body>
</html>
